package com.pine.dcts.task;

import java.util.Collection;

/**
 * @author xiaoyuan
 * @create 2021/6/2
 **/
public interface TaskStatCollector {

    boolean pushTask(TaskExecutorStat executorStat);

    boolean remove(String taskId);

    TaskExecutorStat get(String taskId);

    Collection<TaskExecutorStat> getAll();


    boolean containsKey(String taskId);

    int taskSize();

    void clear();
}
